import random
class Random_Int:
    def __init__(self,nums = 5,start=0,end=100):
        self.start = start
        self.end = end
        self.nums = nums
    
    def get_num(self):
        return [random.randint(self.start, self.end) for num in range(self.nums)]
    
print(Random_Int().get_num())

class PrintableMixin:
    def print(self):
        lst=[(self[n],self[n+1]) for n in range(0,len(self)-1,2)]
        print(lst)

class PrintableRandomInt(PrintableMixin,Random_Int):
    pass

a = PrintableRandomInt(20)

PrintableRandomInt.print(a.get_num())


# 做的不错

